using System;
using System.Collections.Generic;
using System.Text;

namespace Colorprj.Masters
{
    class Buyer
    {

        private int _BuyerId = -1;
        public int BuyerId
        {
            get
            {
                return _BuyerId;
            }
            set
            {
                _BuyerId = value;
            }
        }

        private int _AccType = 0;
        public int AccType
        {
            get
            {
                return _AccType;
            }
            set
            {
                _AccType = value;
            }
        }


        private string _BuyerName = "";
        public string BuyerName
        {
            get
            {
                return _BuyerName;
            }
            set
            {
                if (string.IsNullOrEmpty(value.Trim())) throw new Exception("Buyer Name Can Not be null");
                _BuyerName = value;
            }
        }

        private string _BuyerAddress1 = "";
        public string BuyerAddress1
        {
            get
            {
                return _BuyerAddress1;
            }
            set
            {
                _BuyerAddress1 = value;
            }
        }


        private string _BuyerAddress2 = "";
        public string BuyerAddress2
        {
            get
            {
                return _BuyerAddress2;
            }
            set
            {
                _BuyerAddress2 = value;
            }
        }

        private string _BuyerCity = "";
        public string BuyerCity
        {
            get
            {
                return _BuyerCity;
            }
            set
            {
                _BuyerCity = value;
            }
        }

        private string _PhoneNo = "";
        public string PhoneNo
        {
            get
            {
                return _PhoneNo;
            }
            set
            {
                _PhoneNo = value;
            }
        }

        private string _EmailId = "";
        public string EmailId
        {
            get
            {
                return _EmailId;
            }
            set
            {
                _EmailId = value;
            }
        }



        private double  _OpBal = 0;
        public double OpBal
        {
            get
            {
                return _OpBal;
            }
            set
            {
                _OpBal = value;
            }
        }

        private string _DrCr = "";
        public string DrCr
        {
            get
            {
                return _DrCr;
            }
            set
            {
                _DrCr = value;
            }
        }

        private string _TinNo = "";
        public string TinNo
        {
            get
            {
                return _TinNo;
            }
            set
            {
                _TinNo = value;
            }
        }
    }



  
}
